/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-11-21
 * Time: 21:26
 */
class MyArray<E> {
    public Object[] array = new Object[10];
    public  void setValue(int pos, E val) {
        array[pos] = val;
    }

    public E getVal(int pos) {
        return  (E)array[pos];}

    public class Test2 {


        public static void main(String[] args) {
                /*Test2 test2 = new Test2();
34	        System.out.println(test2);*/

            MyArray<Integer> myArray = new MyArray<Integer>();
            System.out.println(myArray);

        	        /*MyArray<String> myArray2 = new MyArray<>();
40	        System.out.println(myArray2);*/
        }}
    }
